﻿using FutianCloudAPIService.Domains;
using Nancy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FutianCloudAPIService.Handler
{
    public class SystemModule:RavenModule
    {
        public SystemModule(SystemDomain sysDomain) :base("sys")
        {
            Get["log", true] = async (p, c) =>
             {
                 ViewBag.log  = await sysDomain.Tail();
                 return View["syslog", ViewBag];
             };
        }
    }
}
